import request from '../../utils/request'


//权限管理列表

export const authAdmin = (params) => {
    return request.get('/auth/admin', {params})
}

//菜单权限数据

export const userGetMenu =() => {
    return request.get('/user/getmenu' )
}

//权限修改
export const userSetMenu =(data) => {
    return request.post('/user/setmenu',data )
}

//菜单权限列表

export const getMenuList =(params) => {
    return request.get('/menu/list',{params} )
}

//权限下拉列表

export const menuSelectList = ()=>{
    return request.get('/menu/selectlist')
}

//用户数据修改
export const updateUser = (data)=>{
    return request.post('/update/user',data)
}

//用户菜单权限
export const menuPermissions= ()=>{
    return request.get('/menu/permissions')
}